/**
 *
 */
package com.thinkgem.javamg.modules.busi.web;

import com.thinkgem.javamg.task.thread.PgatourThread;
import com.thinkgem.javamg.task.thread.SinaThread;
import com.thinkgem.javamg.task.thread.ToutiaoThread;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 公用api
 */
@RestController("apiPublicController")
@RequestMapping(value = "/api/pub")
public class PublicController {

    @RequestMapping(value = "exec")
    public String exec() {
        new SinaThread().start();
        new PgatourThread().start();
        new ToutiaoThread().start();
        return "手工触发爬虫任务";
    }

}
